const express = require('express');
// 导入验证数据中间件
const expressJoi = require('@escook/express-joi');
const {reg_login_user} = require('../schema/user.js');
const router = express.Router();
// 导入用户路由处理函数
const user_handler = require('./router_handler/user.js'); 
// 注册
router.post('/reguser',expressJoi(reg_login_user),user_handler.regUser);
// 登录
router.post('/login',expressJoi(reg_login_user),user_handler.login);
module.exports = router;